function selType(ambit) {
	$.get('AmbitTypeServlet?ambit=' + ambit, function(responseJson) {    // Execute Ajax GET request on URL of "someservlet" and execute the following function with Ajax response JSON...
		$("select[id='type']").empty();
		var options = '<option disabled="" value="" selected="">Select a type</option>';
		var arrayType = new Array();
		$.each(responseJson, function(index, item) {
			arrayType.push(item);
		});
		for (var i = 0; i < arrayType.length; i++)
			options += '<option value="' + arrayType[i] + '">' + arrayType[i] + '</option>';
		$("select[id='type']").html(options);
	});
}